
// CHelpDialogDlg.h : header file
//

#pragma once

#include <afxdhtml.h>        // HTML Dialogs
class CProteinVistaView;

class CProteinVistaView;
class CProteinVistaRenderer;

// CCHelpDialog dialog
class CScriptHelpDialog : public CXTPCommandBarsSiteBase<CDHtmlDialog>
{
	// Construction
public:
	CScriptHelpDialog(CWnd* pParent = NULL);	// standard constructor
	DECLARE_DYNCREATE(CScriptHelpDialog)

	CProteinVistaView * m_pProteinVistaView;
	CProteinVistaRenderer * m_pProteinVistaRenderer;

	CStringArray		m_strArrayKey;
	CStringArray		m_strArrayPath;
	CStringArray		m_strArrayAnchor;

	CString				m_lastQuery;
	INT32					m_searchIndex;

	// Dialog Data
	enum { IDD = IDD_HELP_DIALOG };

	void Init(CProteinVistaView * pView);
	virtual HRESULT OnUpdate();
	virtual void	Delete();

	BOOL NavigateWord(CString strWord);
	HRESULT ReadHelpIndex();
	HRESULT OpenHelp(CString & word);

	virtual BOOL PreTranslateMessage(MSG* pMsg);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

	// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	DECLARE_MESSAGE_MAP()
	DECLARE_DHTML_EVENT_MAP()
public:
	afx_msg void OnSize(UINT32 nType, INT32 cx, INT32 cy);
};
